pub fn dp_rec_mc(amount: u32) -> u32 {
    let denominations = [100, 50, 30, 20, 10, 5, 2, 1];
    let mut remaining_amount = amount;
    let mut banknotes_count = 0;
    for denomination in denominations.iter() {
        banknotes_count += remaining_amount / *denomination;
        remaining_amount %= *denomination;
    }
    banknotes_count
}
